package com.chalk.model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author glq
 * @since 2020-12-19
 */

@Data
@TableName("t_picture")
@ApiModel(value="Picture对象", description="轮播图")
public class Picture implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "轮播图id")
    @TableId(value = "picture_id", type = IdType.AUTO)
    @JsonProperty("pictureId")
    private Integer pictureId;

    @ApiModelProperty(name = "picture_name", value = "轮播图名称")
    @JsonProperty("pictureName")
    private String pictureName;

    @ApiModelProperty(value = "轮播图url")
    @JsonProperty("pictureUrl")
    private String pictureUrl;

    @ApiModelProperty(name = "picture_type", value = "轮播图方式（1 小程序、0 外部链接）")
    @JsonProperty("pictureType")
    private Integer pictureType;


    @ApiModelProperty(name = "advert_type", value = "广告类型（0 首页、4 积分）")
    @JsonProperty("advertType")
    private Integer advertType;

    @ApiModelProperty(name ="is_available" ,value = "账户是否可用（1、可用，0、不可用，默认1）")
    @JsonProperty("isAvailable")
    private Integer isAvailable;

    @ApiModelProperty(name = "is_delete",value = "0未删除 1已删除")
    @JsonProperty("isDelete")
    private Integer isDelete;

    @ApiModelProperty(name = "censor_status",value = "审核状态(0：未审核、1审核中、2：审核成功、3审核失败)")
    @JsonProperty("censorStatus")
    private Integer censorStatus;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;


    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;


}
